package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.BaseCategory3;
import com.atguigu.tingshu.model.album.BaseCategoryView;
import com.atguigu.tingshu.vo.album.CategoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName : CategoryMapper
 * Package: com.atguigu.tingshu.album.mapper
 * Description:
 *
 * @Author 李轩辕
 * @Create 29/5/2024 下午7:52
 * @Version 17.0
 */
@Repository
@Mapper
public interface CategoryMapper {
    List<CategoryVo> getBaseCategoryList();

    BaseCategoryView getCategoryViewByCategory3Id(@Param("category3Id") Long category3Id);

    List<BaseCategory3> findTopBaseCategory3(@Param("category1Id") Long category1Id);

    CategoryVo getAllCategoryList(@Param("category1Id") Long category1Id);
}
